﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddRole.aspx.cs" Inherits="Whir_System_Module_Role_AddRole" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色信息管理</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            alert('禁止访问子栏目页！将跳转到默认页面');
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title"><strong>用户组信息管理</strong></td>
            </tr>
            <tr>
                <td width="100px" height="30" align="center" class="form_tdText">用户组名称</td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtRoleName" runat="server"></asp:TextBox><span class="form_desc">用户组：用户组对应的就是一个管理组，可以把管理员添加到不同的组里</span></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText">用户组描述</td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtRoleDesc" runat="server" TextMode="MultiLine" CssClass="input_textarea"></asp:TextBox></td>
            </tr>
            <tr>
                <td height="30" align="center" class="form_tdText"></td>
                <td align="left" class="form_td">
                    <asp:Button ID="btnSubmit" runat="server" Text="提交" CssClass="btn_default" OnClick="btnSubmit_Click"
                        OnClientClick="return checkForm();" />
                    <asp:Button ID="btnCancel" runat="server" Text="返回" CssClass="btn_default" CausesValidation="false"
                        OnClick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script language="javascript" src="../../Js/common.js"></script>

<script type="text/javascript">initAutoFormStyle();</script>

<!-- 验证-->

<script language="javascript" type="text/javascript" src="../../../Script/Validate.js"></script>

<script type="text/javascript">
function checkForm(){
        var vs = [
        "txtRoleName|noNull|请输入角色的名称，名称可以为中文、英文等！"
        ]; 
        if(Validator(vs))
           return true;
        else
            return false;    
}
</script>

